	
	<%@ page language="java" contentType="text/html" import="java.util.Enumeration" %>
	
	<%
	
		Enumeration names = request.getHeaderNames();
		out.println("<fieldset>");
		out.println("<legend>HeaderFields</legend>");

		while (names.hasMoreElements()) {
		  String name = (String)names.nextElement();
		
		  Enumeration values = request.getHeaders(name);
		
		  while (values.hasMoreElements())
		    out.println(name + " = " + (String)values.nextElement() + "<br/>");
		    
		}
		out.println("</fieldset>");
		
		names = request.getParameterNames();
		out.println("<fieldset>");
		out.println("<legend>Parameters</legend>");
		
		while (names.hasMoreElements()) {
		  String name = (String)names.nextElement();		
		  String[] values = request.getParameterValues(name);
		
		  for (int i = 0; i < values.length; i++)
				out.println(name + " = " + values[i] + "<br/>");
						
		}
		out.println("</fieldset>");

		
	%>